<?php

$TCA['agent'] = array(
	'ctrl' => $TCA['agent']['ctrl'],
	'interface' => array(
		'showRecordFieldList' => 'pid,hidden,name,alias,description,image,phone_office,mobile,fax'
	),
	'types' => array(
		'1' => array('showitem' => 'pid,hidden,name,alias,description,image,phone_office,mobile,fax')
	),
	'palettes' => array(
		'1' => array('showitem' => '')
	),
	'columns' => array(
		'hidden' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:reality/Resources/Private/Language/locallang_db_agent.xml:agent.hidden',
			'config'  => array(
				'type' => 'check',
			),
		),
		'name' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:reality/Resources/Private/Language/locallang_db_agent.xml:agent.name',
			'config'  => array(
				'type' => 'input',
				'size' => 128,
				'eval' => 'trim,required',
			),
		),
		'alias' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:reality/Resources/Private/Language/locallang_db_agent.xml:agent.alias',
			'config'  => array(
				'type' => 'input',
				'size' => 128,
				'eval' => 'trim,required',
			),
		),
		'description' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:reality/Resources/Private/Language/locallang_db_agent.xml:agent.description',
			'config'  => array(
				'type' => 'text',
				'cols' => '30',
				'rows' => '5',
			)
		),
		'image' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:reality/Resources/Private/Language/locallang_db_agent.xml:agent.image',
			'config'  => array(
				'type'          => 'group',
				'internal_type' => 'file',
				'allowed'       => 'jpg,png,gif,jpeg',
				'max_size'      => 30000,
				'uploadfolder'  => 'uploads/tx_reality/agent/',
				'show_thumbs'   => 0,
				'size'          => 1,
				'minitems'      => 0,
				'maxitems'      => 1,
			),
		),
		'phone_office' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:reality/Resources/Private/Language/locallang_db_agent.xml:agent.phone_office',
			'config'  => array(
				'type' => 'input',
				'size' => 128,
				'eval' => 'trim',
			),
		),
		'mobile' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:reality/Resources/Private/Language/locallang_db_agent.xml:agent.mobile',
			'config'  => array(
				'type' => 'input',
				'size' => 128,
				'eval' => 'trim',
			),
		),
		'fax' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:reality/Resources/Private/Language/locallang_db_agent.xml:agent.fax',
			'config'  => array(
				'type' => 'input',
				'size' => 128,
				'eval' => 'trim',
			),
		),
	),
);

?>